package com.itheima.mall.api.cms;

import com.itheima.mall.mapper.cms.AreaMapper;
import com.itheima.mall.pojo.cms.CmsPrefrenceArea;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class AreaServiceApiImpl implements AreaServiceApi {
    @Autowired
    private AreaMapper areaMapper;

    @Override
    public List<CmsPrefrenceArea> listAll() {
        return areaMapper.selectList(null);
    }
}
